package com.cictec.middleware.distribute.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.cictec.middleware.commons.utils.Result;

/**
 * 中间件 报站文件升级对外暴露服务
 * 
 * @author Administrator
 *
 */
@RestController
public class MiddlewareDeviceFileUploadController {

	/**
	 * TDE触发设备升级指定
	 * 
	 * @param devCode
	 * @return
	 */
	@RequestMapping(value = "/callDeviceStaionFileUpload")
	public Result callDeviceStaionFileUpload(String devCode) {
		return null;
	}

	/**
	 * 设备上传 获取(更新)设备升级sessionId,并更新详情
	 * 
	 * @param devCode
	 * @return
	 */
	@RequestMapping(value = "/uploadDeviceStaionFileUploadSessionId")
	public Result uploadDeviceStaionFileUploadSessionId(@RequestParam("devCode") String devCode,
			@RequestParam("newSessionId") String newSessionId) {
		return null;
	}

	/**
	 * 设备上传 更新报站文件升级结果
	 * 
	 * @param devCode
	 * @param newSessionId
	 * @return
	 */
	@RequestMapping(value = "/uploadDeviceStaionFileUploadResult")
	public Result uploadDeviceStaionFileUploadResult(@RequestParam("devCode") String devCode,
			@RequestParam("newSessionId") String newSessionId, @RequestParam("info") String info,
			@RequestParam("errorInfo") String errorInfo) {
		return null;
	}

}
